import { IMessageBase } from "../../Framework/MQ/IMessageBase";
import { MessageManager } from "../../Framework/MQ/MessageManager";
import { SerializeStream } from "../../Framework/Serialize/SerializeStream";
type int = number;
//class SGuildLeaderImpeach
    
    export  class SGuildLeaderImpeach extends IMessageBase
    {
        constructor(arg1: Boolean=false)
        {
            
            super();if (arg1) 
            {
                MessageManager.instance().regist(this);
            }
            return;
        }

        public /* override */ getType(): int
        {
            return this._type;
        }

        public /* override */ clone(): IMessageBase
        {
            return new SGuildLeaderImpeach();
        }

        public /* override */ __write(arg1: SerializeStream): void
        {
            arg1.writeInt(this.guildId);
            arg1.writeInt(this.impeachType);
            arg1.writeDate(this.endDate);
            arg1.writeString(this.leaderName);
            arg1.writeString(this.fromPlayer);
            arg1.writeInt(this.extend);
            return;
        }

        public /* override */ __read(arg1: SerializeStream): void
        {
            this.guildId = arg1.readInt();
            this.impeachType = arg1.readInt();
            this.endDate = arg1.readDate();
            this.leaderName = arg1.readString();
            this.fromPlayer = arg1.readString();
            this.extend = arg1.readInt();
            return;
        }

        public /* const */_type: int=12091;

        public /* var */guildId: int;

        public /* var */impeachType: int;

        public /* var */endDate: Date;

        public /* var */leaderName: string;

        public /* var */fromPlayer: string;

        public /* var */extend: int;

        public static /* var */_regist: SGuildLeaderImpeach;
    }

            SGuildLeaderImpeach._regist = new SGuildLeaderImpeach(true);
        